package com.atguigu.service.impl;

import com.atguigu.bean.User;
import com.atguigu.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-17
 * @Description:
 * @Version: 1.0
 */
@Service
public class UserAllservice {

    @Autowired
    private Userservice userservice;
    @Transactional
    public void updateUserAll(User user) {

        //修改密码
        userservice.updatePassword(user);

        //修改昵称
        userservice.updateNickname(user);
    }
}
